from flask import Flask, render_template, url_for

app = Flask(__name__)
#http://music.2t58.com
# 模拟音乐数据
music_data = [
    {
        'id': 1,
        'title': '空心',
        'artist': '光泽',
        'cover': 'https://picsum.photos/seed/music1/200/200',
        'audio_url': './static/music/空心.aac'
    },
    {
        'id': 2,
        'title': 'Sonic Dreams',
        'artist': 'Deep Tech',
        'cover': 'https://picsum.photos/seed/music2/200/200',
        'audio_url': 'https://example.com/music2.mp3'
    },
    {
        'id': 3,
        'title': 'Echoes of Time',
        'artist': 'Synthwave Collective',
        'cover': 'https://picsum.photos/seed/music3/200/200',
        'audio_url': 'https://example.com/music3.mp3'
    },
    {
        'id': 4,
        'title': 'Neon Dreams',
        'artist': 'Retro Future',
        'cover': 'https://picsum.photos/seed/music4/200/200',
        'audio_url': 'https://example.com/music4.mp3'
    },
    {
        'id': 5,
        'title': 'Midnight',
        'artist': 'Urban Dreams',
        'cover': 'https://picsum.photos/seed/music5/200/200',
        'audio_url': 'https://example.com/music5.mp3'
    }
]

@app.route('/')
def index():
    return render_template('index.html', music_list=music_data)

@app.route('/about')
def about():
    return render_template('about.html')

if __name__ == '__main__':
    app.run(debug=True)